home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / terms / tip / cmdtab.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-09  |  2.0 KB  |  49 lines

  1. /*
  2.  * Copyright (c) 1983 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that the above copyright notice and this paragraph are
  7.  * duplicated in all such forms and that any documentation,
  8.  * advertising materials, and other materials related to such
  9.  * distribution and use acknowledge that the software was developed
  10.  * by the University of California, Berkeley.  The name of the
  11.  * University may not be used to endorse or promote products derived
  12.  * from this software without specific prior written permission.
  13.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16.  */
  17.  
  18. #ifndef lint
  19. static char sccsid[] = "@(#)cmdtab.c    5.5 (Berkeley) 9/2/88";
  20. #endif /* not lint */
  21.  
  22. #include "tip.h"
  23.  
  24. extern    int shell(), getfl(), sendfile(), chdirectory();
  25. extern    int finish(), help(), pipefile(), pipeout(), consh(), variable();
  26. extern    int cu_take(), cu_put(), dollar(), genbrk(), suspend();
  27.  
  28. esctable_t etable[] = {
  29.     { '!',    NORM,    "shell",             shell },
  30.     { '<',    NORM,    "receive file from remote host", getfl },
  31.     { '>',    NORM,    "send file to remote host",     sendfile },
  32.     { 't',    NORM,    "take file from remote UNIX",     cu_take },
  33.     { 'p',    NORM,    "put file to remote UNIX",     cu_put },
  34.     { '|',    NORM,    "pipe remote file",         pipefile },
  35.     { '$',    NORM,    "pipe local command to remote host", pipeout },
  36. #ifdef CONNECT
  37.     { 'C',  NORM,    "connect program to remote host",consh },
  38. #endif
  39.     { 'c',    NORM,    "change directory",         chdirectory },
  40.     { '.',    NORM,    "exit from tip",         finish },
  41.     {CTRL('d'),NORM,"exit from tip",         finish },
  42.     {CTRL('y'),NORM,"suspend tip (local+remote)",     suspend },
  43.     {CTRL('z'),NORM,"suspend tip (local only)",     suspend },
  44.     { 's',    NORM,    "set variable",             variable },
  45.     { '?',    NORM,    "get this summary",         help },
  46.     { '#',    NORM,    "send break",             genbrk },
  47.     { 0, 0, 0 }
  48. };
  49.